// Student类型的局部变量, 返回Student

#include <iostream>
#include <string.h>
using namespace std;

struct Student {
    char name[40];
    char SSN[12];
    int dept;
    float gpa;
};

Student GetStudentInfo();

int main() {
    Student MyStudent = GetStudentInfo();
}

Student GetStudentInfo() {
    Student temp;
    strcpy(temp.name, "J.E. White");
    strcpy(temp.SSN, "555-11-5555");
    temp.dept = 1;
    temp.gpa = 3.8;
    return temp;
}